<!--
 * @Author: 天羽落星辰
 * @Date: 2020-08-13 16:37:57
 * @LastEditors: 天羽落星辰
 * @LastEditTime: 2020-08-16 22:03:27
 * @Description: file content
-->
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="" placeholder="不是必填">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Uname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-uname" data-rule="required" class="form-control" name="row[uname]" type="text">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company" data-rule="required" class="form-control" name="row[company]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Apikey')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apikey" data-rule="required" class="form-control" name="row[apikey]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Everyday_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-everyday_number" data-rule="required" class="form-control" name="row[everyday_number]" type="number" min="0" placeholder="零没有限制请求">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('White_list_ip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-white_list_ip" data-rule="" class="form-control " rows="5" name="row[white_list_ip]" cols="50" placeholder="白名单为空，不限制IP, 输入内容后空格确认，自动分隔"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
